<a href='https://github.com/angular/angular.js/edit/v1.2.x/docs/content/error/$sanitize/badparse.ngdoc?message=docs(error%2Fbadparse)%3A%20describe%20your%20change...' class='improve-docs btn btn-primary'><i class="glyphicon glyphicon-edit">&nbsp;</i>Improve this Doc</a>


<h1>Error: error:badparse
  <div><span class='hint'>Parsing Error while Sanitizing</span></div>
</h1>

<div>
    <pre class="minerr-errmsg" error-display="The sanitizer was unable to parse the following block of html: {0}">The sanitizer was unable to parse the following block of html: {0}</pre>
</div>

<h2>Description</h2>
<div class="description">
  <p>This error occurs when the HTML string passed to &#39;$sanitize&#39; can&#39;t be parsed by the sanitizer.
The error contains part of the html string that can&#39;t be parsed.</p>
<p>The parser is more strict than a typical browser parser, so it&#39;s possible that some obscure input would produce this error despite the string being recognized as valid HTML by a browser.</p>
<p>If a valid html code results in this error, please file a bug.</p>

</div>


